import java.util.BitSet;

public class Test {
    public static void main(String[] args) {
        MyBitSet myBitSet = new MyBitSet();
        int[] arr = {1,5,89,423,589,152};
        for (int i = 0; i < arr.length; i++) {
            myBitSet.set(arr[i]);
        }

        System.out.println(myBitSet.size());
        System.out.println(myBitSet.get(1));
        System.out.println(myBitSet.get(5));
        System.out.println(myBitSet.get(89));
        System.out.println(myBitSet.get(423));
        System.out.println(myBitSet.get(589));
        System.out.println(myBitSet.get(152));


    }
}
